package day01.ti.ti02;

public class Niao extends Dongwu{
    private String yingwu;
    private String maotouying;
    private String xique;

    public Niao() {
    }

    public Niao(String yingwu, String maotouying, String xique) {
        this.yingwu = yingwu;
        this.maotouying = maotouying;
        this.xique = xique;
    }

    public String getYingwu() {
        return yingwu;
    }

    public void setYingwu(String yingwu) {
        this.yingwu = yingwu;
    }

    public String getMaotouying() {
        return maotouying;
    }

    public void setMaotouying(String maotouying) {
        this.maotouying = maotouying;
    }

    public String getXique() {
        return xique;
    }

    public void setXique(String xique) {
        this.xique = xique;
    }
    public void dongwu(){
        System.out.println("鸟类有  "+getYingwu()+getMaotouying()
                +getXique());
    }
}
